Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GLUTEN-6470][CH]Fix Task not serializable error when inserting mergetree data #6473

Merged
merged 3 commits into from
Jul 17, 2024

Conversation

zzcclp
Copy link
Contributor

@zzcclp zzcclp commented Jul 16, 2024

What changes were proposed in this pull request?

When inserting mergetree data, it occurs the Task not serializable error in some cases.

RC:
In the Delta, the options of the DeltaOptions is a CaseInsensitiveMap, if calling the api filterKeys() of the CaseInsensitiveMap, it may become not serializable, so lead to this error.

Close #6470.

(Fixes: #6470)

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Copy link

#6470

Copy link

Run Gluten Clickhouse CI

@zzcclp zzcclp requested a review from baibaichen July 16, 2024 07:02
zzcclp added 2 commits July 16, 2024 17:01
…tree data

When inserting mergetree data, it occurs the Task not serializable error in some cases.

RC:
In the Delta, the options of the `DeltaOptions` is a `CaseInsensitiveMap`, if calling the api `filterKeys()` of the `CaseInsensitiveMap`, it may become not serializable, so lead to this error.

Close apache#6470.
Copy link

Run Gluten Clickhouse CI

Copy link

Run Gluten Clickhouse CI

@@ -39,7 +39,7 @@ abstract class Affinity(val manager: AffinityManager) extends LogLevelUtil with
filePaths: Array[String],
preferredLocations: Array[String]): Array[String] = {
if (shouldUseSoftAffinity(filePaths, preferredLocations)) {
internalGetHostLocations(filePaths.min)
internalGetHostLocations(filePaths(0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this modification related to this issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related

Copy link
Contributor

@baibaichen baibaichen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@baibaichen baibaichen merged commit 48788c4 into apache:main Jul 17, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CH] Fix Task not serializable error when inserting mergetree data
2 participants